﻿//// See https://aka.ms/new-console-template for more information
//using DynamicProxyMode;
//using LogTestApp;
//using Microsoft.Extensions.Configuration;
//using Microsoft.Extensions.DependencyInjection;
//using Microsoft.Extensions.Logging; 
//Console.WriteLine("Hello, World!");

//var aaa = new DynamicProxyModeClass();
//aaa.testMain();

////JsonFileLoad load=new JsonFileLoad();

////var list= load.GetCaseCodes();


////StaticProxyPattern.testMain();

////ProxyPattern.testMain();

//{
//    var services = new ServiceCollection();
//    var configuration = new ConfigurationManager();
//    configuration.SetBasePath(Directory.GetCurrentDirectory());
//    configuration.AddJsonFile("appsettings.json");

//    services.AddLogging(configure => 
//    { 
//        configure.AddConsole();
//        configure.AddDebug();
//        configure.AddFile();
//        //configure.AddFilter((provider, categorName, level) => {
//        //    return categorName.StartsWith("A.B") && level >= LogLevel.Information;
//        //});

//        configure.AddConfiguration(configuration.GetSection("Logging"));

//    });

//    var sp=services.BuildServiceProvider();
//    var loggerFactory = sp.GetRequiredService<ILoggerFactory>();
     
//    var logger = loggerFactory.CreateLogger(typeof(Program));

//    logger.LogInformation("6666666");
//    logger.LogError("ttttttttttttttttttttttttttttttttttt");

//}
